@extends('layout/index')
@section('main')
    <div class="mws-panel grid_8">
        <div class="mws-panel-header">
            <span><i class="icon-table"></i>回收站</span>
        </div>
        <div class="mws-panel-body no-padding">
            <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
                <form action="" method="get">
                    <div class="dataTables_length" id="DataTables_Table_1_length">
                        <label>显示 <select aria-controls="DataTables_Table_1" size="1" name="num">
                                <option selected="selected" value="10">5</option><option value="25">10</option>
                                <option value="50">50</option><option value="100">20</option></select> 条数据</label>
                    </div>
                    <div id="DataTables_Table_1_filter" class="dataTables_filter">
                        <label>搜索: <input aria-controls="DataTables_Table_1" type="text" name="search"></label>
                        <button class="btn btn-default">点击搜索</button>
                    </div>
                </form>
                <table aria-describedby="DataTables_Table_1_info" id="DataTables_Table_1" class="mws-datatable-fn mws-table dataTable">
                    <thead>
                    <tr role="row">
                        <th aria-label="Rendering engine: activate to sort column descending" aria-sort="ascending" style="width: 80px;" colspan="1" rowspan="1" aria-controls="DataTables_Table_1" tabindex="0" role="columnheader" class="sorting_asc">商品ID</th>
                        <th aria-label="CSS grade: activate to sort column ascending" style="width: 150px;" colspan="1" rowspan="1" aria-controls="DataTables_Table_1" tabindex="0" role="columnheader" class="sorting">商品名称</th>
                        <th aria-label="Platform(s): activate to sort column ascending" style="width: 80px;" colspan="1" rowspan="1" aria-controls="DataTables_Table_1" tabindex="0" role="columnheader" class="sorting">分类ID</th>
                        <th aria-label="Engine version: activate to sort column ascending" style="width: 160px;" colspan="1" rowspan="1" aria-controls="DataTables_Table_1" tabindex="0" role="columnheader" class="sorting">商品图片</th>
                        <th aria-label="CSS grade: activate to sort column ascending" style="width: 118px;" colspan="1" rowspan="1" aria-controls="DataTables_Table_1" tabindex="0" role="columnheader" class="sorting">商品价格</th>
                        <th aria-label="CSS grade: activate to sort column ascending" style="width: 118px;" colspan="1" rowspan="1" aria-controls="DataTables_Table_1" tabindex="0" role="columnheader" class="sorting">商品库存</th>
                        <th aria-label="Platform(s): activate to sort column ascending" style="width: 260px;" colspan="1" rowspan="1" aria-controls="DataTables_Table_1" tabindex="0" role="columnheader" class="sorting">商品描述</th>
                        <th aria-label="CSS grade: activate to sort column ascending" style="width: 118px;" colspan="1" rowspan="1" aria-controls="DataTables_Table_1" tabindex="0" role="columnheader" class="sorting">商品状态</th>
                        <th aria-label="CSS grade: activate to sort column ascending" style="width: 118px;" colspan="1" rowspan="1" aria-controls="DataTables_Table_1" tabindex="0" role="columnheader" class="sorting">添加时间</th>
                        <th aria-label="CSS grade: activate to sort column ascending" style="width: 180px;" colspan="1" rowspan="1" aria-controls="DataTables_Table_1" tabindex="0" role="columnheader" class="sorting">操作</th>
                    </tr>
                    </thead>

                    <tbody aria-relevant="all" aria-live="polite" role="alert">
                    @foreach($row as $k=>$v)
                        @if($v->status==0)
                            <tr class="odd">
                                <td class="  sorting_1">{{$v->id}}</td>
                                <td class=" ">{{$v->goodsname}}</td>
                                <td class=" ">{{$v->tid}}</td>
                                <td class=" "><img src="{{$v->goodspic}}" alt="" width="100px"></td>
                                <td class=" ">{{$v->goodsprice}}</td>
                                <td class=" ">{{$v->goodsnum}}</td>
                                <td class=" ">{{$v->goodsdes}}</td>
                                <td class=" ">{{$v->status}}</td>
                                <td class=" ">{{$v->goodstime}}</td>
                                <td class=" "><a href="/Admin/goods/reset?id={{$v->id}}" style="color: #333333;">启用 <i class="icon-ok"></i> |</a><a href="/Admin/goods/drop?id={{$v->id}}" style="color: #333333;"> 删除 <i class="icon-trash"></i></a></td>
                            </tr>
                        @endif
                    @endforeach
                    </tbody>
                </table>

                <div id="page" class="dataTables_paginate paging_full_numbers">
                    {!! $row->render() !!}

                </div>
            </div>
        </div>
    </div>

@endsection